package service;

import java.rmi.RemoteException;

import webservices.HealthCareServerProxy;

public class ViewDocPosts {
	
	public String[] getDocPost(String username, String doclist){
		String response = null;
		String[] userPostComment = null;
		HealthCareServerProxy proxy = new HealthCareServerProxy();
		try {
			response = proxy.getDocPosts(username, doclist);
			if(!response.isEmpty()){
				userPostComment = response.split("@");	
				System.out.println(userPostComment[0]);
				
			}
		} catch (RemoteException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return userPostComment;
	
	}
}
